package cn.net.dpi.lock.support;

public class LockTraceHolder {

    private static final ThreadLocal<LockTrace> LOCK_TRACE_HOLDER = new ThreadLocal<>();

    public static void setLockTrace(LockTrace lockTrace) {
        LOCK_TRACE_HOLDER.set(lockTrace);
    }

    public static LockTrace getLockTrace() {
        return LOCK_TRACE_HOLDER.get();
    }

    public static void remove() {
        LOCK_TRACE_HOLDER.remove();
    }
}
